package com.jxpanda.spring.module.auth.endpoint.handler;

import com.jxpanda.spring.module.auth.core.token.OAuth2TokenPayload;
import com.jxpanda.spring.module.auth.endpoint.OAuth2Response;
import reactor.core.publisher.Mono;

public interface ReactiveAuthenticationSuccessHandler {

    default Mono<Object> onAuthenticationSuccess(OAuth2TokenPayload oAuth2TokenPayload) {
        return Mono.just(OAuth2Response.of(oAuth2TokenPayload));
    }

}
